
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
		<title>领取免单</title>
		<link rel="stylesheet" href="css/style.css" />
		<link rel="stylesheet" href="css/swiper.css" type="text/css"/>
		<script src="js/jquery-1.9.1.min.js"></script>
		 <script src="js/clipboard-2-0.js"></script>
		 <script src="js/swiper.3-4-2-jquery.min.js"></script>
		 
	<script>
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        window.onresize = function () {
            document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        }
    </script>
	</head>
	<body>
		<img src="img/bg.png" class="bg"/>
		<!--<div class="swiper-container" style="overflow: hidden;">
			    <div class="swiper-wrapper">
			        <div class="swiper-slide ">
			        	11111
					</div>
					<div class="swiper-slide ">
			        	22222
					</div>
					<div class="swiper-slide ">
			        	333333
					</div>
				</div>
		</div>-->
		<!---->
		<!--<div class="tmTitle">
				<span>最上面标题</span>
		</div>-->
		<!---->
		<!--<div class="inputSelect">
				<span>返利</span>
		</div>-->
		<!---->
		<div class="shuffling-box">
			<div class="shuffling">
				<span></span>
				
				<div class="swiper-container" style="overflow: hidden;">
				    <div class="swiper-wrapper">
				        <div class="swiper-slide ">
				        	<div class="flex-swiper">
				        		<img src="img/person1.png" />
				        		<b>忘羡</b>  18秒前使用了优惠券。节省了<i>20元</i>
				        	</div>
				        	
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person2.png" />
				        	<b>南瓜</b>  22秒前使用了优惠券。节省了<i>10元</i>
				        </div>
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person3.png" />
				        		<b>莪的悲伤</b>  31秒前使用了优惠券。节省了<i>5元</i>
				        </div>
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person1.png" />
				        		<b>骑白猪</b> 12秒前使用了优惠券。节省了<i>12元</i>
				        </div>
						</div>
						
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person2.png" />
				        		<b>信仰改不</b> 27秒前使用了优惠券。节省了<i>5元</i>
				        </div>
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person3.png" />
				        		<b>女汉子咋滴i</b> 31秒前使用了优惠券。节省了<i>30元</i>
				        </div>
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person1.png" />
				        		<b>有病吧你 u</b> 20秒前使用了优惠券。节省了<i>18元</i>
				        </div>
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person2.png" />
				        		<b>-誰.ㄋ解莪.</b> 39秒前使用了优惠券。节省了<i>15元</i>
				        </div>
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person3.png" />
				        		<b>忘羡</b>18秒前使用了优惠券。节省了<i>30元</i>
				        </div>
						</div>
						<div class="swiper-slide ">
							<div class="flex-swiper">
				        		<img src="img/person1.png" />
				        		<b>伴我左右</b>12秒前使用了优惠券。节省了<i>20元</i>
				        		</div>
						</div>
					</div>
				</div>
			
			</div>
		</div>
		<!---->
		<div class="textarea-box">
			<div class="textarea">
				<div class="text-select">
					<input id="copys" readonly="readonly" value="1111"></input>
					<div class="buttonText">搜索公众号添加！</div>
					<a href="javascript:void(0)" class="buttons" data-clipboard-target="#copys" data-clipboard-action="copy" ></a>
				</div>
			</div>
		</div>
		<!---->
		<!--<div class="bottom-bg">
		</div>-->
		<!---->
		<div class="alert-models">
			<div class="alert-bg"></div>
			<div class="alert-content">
				<div class="alert-imgbox">
					<img src="img/fffff.png" class="alert-image"/>
					<div class="alert-text"></div>
					<a href="weixin://" class="alert-button">打开微信添加公众号</a>
				</div>
				
			</div>
		</div>
		
		<script>
			
			function randomCode(){
				var radcode=new Array("btq_110");
				
				var num=Math.floor(Math.random()*radcode.length);
				console.log(num)
				$(".text-select input").val(radcode[num]);
				$(".alert-text").html(radcode[num]);
			}
			
			 function copyCode() {
			 	 	$('.alert-models').show();
                    var clipboard = new ClipboardJS('.buttons');
                    clipboard.on('success', function (e) {
                        console.info('Action:', e.action);
                        console.info('Text:', e.text);
                        console.info('Trigger:', e.trigger);
						console.log("成功")
						console.log(e)
                        e.clearSelection();
                        
                        
                    });

                    clipboard.on('error', function (e) {
						console.log(e)
                        console.error('Action:', e.action);
                        console.error('Trigger:', e.trigger);
						console.log("失败")
                       
                    });                    
               }   
	
			
			$(".buttons").on('click',copyCode);
			$('.alert-content').on('click',function(){
				$('.alert-models').hide();
				
			})
			randomCode();
			
			
			
			
		var mySwiper = new Swiper ('.swiper-container', {
		    loop: true,
		   	autoplayDisableOnInteraction:false,
		   	direction : 'vertical',
		    autoplay:1000,
		    speed:1700,
		    // 如果需要分页器
		    pagination: '.swiper-pagination',
		    // 如果需要前进后退按钮
		    nextButton: '.swiper-button-next',
		    prevButton: '.swiper-button-prev',
		    paginationClickable:true,//此参数设置为true时，点击分页器的指示点分页器会控制Swiper切换。
		    setWrapperSize :true,//Swiper从3.0开始使用flexbox布局(display: flex)，开启这个设定会在Wrapper上添加等于slides相加的宽高，在对flexbox布局的支持不是很好的浏览器中可能需要用到。
  		}) 
		</script>
	</body>
</html>
